package com.llt.mp.domain.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.llt.mp.domain.po.User;
import lombok.Data;

@Data
public class PageQuery {
    private Integer pageNo = 1;

    private Integer pageSize = 5;

    private String sortBy;

    private Boolean isAsc;

    public <T> Page<T> toMpPage() {
        Page<T> page = Page.of(pageNo, pageSize);

        return page;
    }
}
